package tragame.game;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

/**
 * This class represents a part of the map. It could be a wild field with resources
 * and  creatures or a player village with the same resources and units(buildings,
 * human forces...)
 * @author jing jing
 *
 */

public class Square extends UnicastRemoteObject {

	private static final long serialVersionUID = 1L;
	
	private int posX;
	private int posY;
	
	/**
	 * constructor
	 * @param x x-position in the map
	 * @param y y-position in the map
	 */
	public Square(int x, int y) throws RemoteException{
		this.posX = x;
		this.posY = y;
	}
	
	/**
	 * get the x-position of the square in the map
	 * @return the x-position
	 */	
	public int getPosX() {
		return this.posX;
	}
	
	/**
	 * get the y-position of the square in the map
	 * @return the y-position
	 */
	public int getPosY() {
		return this.posY;
	}		
}
